<?php
include("../include/header.inc.php");

include('../Include/functions.inc.php');
?>
<div data-role="page" id="home">
    <!-- Header -->
    <?php
       include("../Include/banner.inc.php")
    ?>

    <div data-role="content">
        <h2><?php echo $textes['them'][$_COOKIE['lang']] ?></h2>
        
        <ul data-role='listview' data-split-icon='gear' class='ui-listview' data-split-theme='d'>
            <?php
                $listeThematiques = getAllThematiqueWithCountOeuvres($_COOKIE['lang']);
                
                //Parcours les thematiques et les affiche
                while($ligne = mysql_fetch_array($listeThematiques))
                {
                     
                    echo "<li class='ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-top ui-btn-up-c' data-theme='c'>";
                    echo "<a href='/Rilke/Oeuvres/detailsOeuvres.php?id=$ligne[0]' class='ui-link-inherit' target='_self'>";
                    echo "<div>\n";
                    echo htmlentities(mysql_escape_string($ligne[1]));
                    echo "<span style='margin-left:50px' class='ui-li-count ui-btn-up-c ui-btn-corner-all'>" . $ligne[2] . "</span>";
                    echo "</div>";
                    echo "</a>";
                    echo "</li>";
                    
                }
            ?>
        </ul>
    </div>
    <!-- Footer -->
    <?php
    include("../Include/footer.inc.php")
    ?>
</div>